{% extends "main_face_base.html" %}

{% block styles %}
	<link rel="stylesheet" href="static/face.css" type="text/css"/>
	<link rel="stylesheet" href="static/table.css" type="text/css"/>
	<link rel="stylesheet" href="static/form_error.css" type="text/css"/>
{% endblock %}

{% block content_block_left %}
	<div>
		<ul>
			<li>
				<p><a href="table?select=works">Работы</a></p>
			</li>
			<li>
				<p>Создать</p>
			</li>
		</ul>
	</div>
{% endblock %}

{% block document_title %}HOME - Новая работа{% endblock %}

{% block title_center %}
{% if fosterling %}
	<p>"{{fosterling.title}}" - рецензия</p>
{% else %}
	<p>Новая работа</p>
{% endif %}
{% endblock %}

{% block title_right %}<div>&nbsp;</div>{% endblock %}

{% block content_block_center %}
	<div>
		<form action="" method="post" autocomplete="off" enctype="multipart/form-data">
			{% if fosterling %}
				<input type="hidden" name="fosterling" value="{{fosterling.id}}"/>
			{% endif %}
			<div class="caption_block">
				<ul>
					{{ form.as_ul }}
				</ul>
			</div>
			<textarea class="text_block" id="id_text" name="text" rows="10">{{ text }}</textarea>
			<div class="submit_container">
				<div>
					<input type="submit" value="Создать/Сохранить" class="create_submit"/>
				</div>
			</div>
		</form>
	</div>
	<div id="message_block">
		<p id="star_message">Поля, отмеченные звездочкой обязательны для заполнения.</p>
	</div>
{% endblock %}

{% block content_right %}
	<div id="body_right">
	</div>
{% endblock %}
